package vn.com.salon.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import vn.com.salon.manager.ProductManager;
import vn.com.salon.model.ProductModel;

@Controller
public class ProductController {

	@Autowired
	private ProductManager productManager;
	
	@RequestMapping(value="add-product", method=RequestMethod.GET)
	public ModelAndView openAddingProductPage(){
		ModelAndView model = new ModelAndView("product/add-product");
		ProductModel productModel =  new ProductModel();
		model.addObject("product", productModel);
		
		return model;
	}
}
